<?php
function startElement($parser, $tagName, $attrs){
	$handler = RssHandler::getInstance();
	if($handler->isInsideItem()){
		$handler->setCurrent($tagName);
	}elseif ($tagName == 'ITEM'){
		$handler->setInsideItem();
	}
}


function characterData($parser, $data){	
	$handler = RssHandler::getInstance();
	$handler->addData($data);
}


function endElement($parser, $tagName){
	if($tagName == 'ITEM'){
		$handler = RssHandler::getInstance();
		$handler->setOutsideItem();
	}
}
?>